package cn.example.zjgsu.pojo;

import java.io.Serializable;

public class User implements Serializable {
    private String acount;

    private String password;

    private String name;

    private String headportrait;

    private Integer fansnumber;

    private Integer attention;

    private String sex;

    private String age;

    private Integer score;

    private Integer cityid;

    private static final long serialVersionUID = 1L;

    public String getAcount() {
        return acount;
    }

    public void setAcount(String acount) {
        this.acount = acount == null ? null : acount.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getHeadportrait() {
        return headportrait;
    }

    public void setHeadportrait(String headportrait) {
        this.headportrait = headportrait == null ? null : headportrait.trim();
    }

    public Integer getFansnumber() {
        return fansnumber;
    }

    public void setFansnumber(Integer fansnumber) {
        this.fansnumber = fansnumber;
    }

    public Integer getAttention() {
        return attention;
    }

    public void setAttention(Integer attention) {
        this.attention = attention;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex == null ? null : sex.trim();
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age == null ? null : age.trim();
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    public Integer getCityid() {
        return cityid;
    }

    public void setCityid(Integer cityid) {
        this.cityid = cityid;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", acount=").append(acount);
        sb.append(", password=").append(password);
        sb.append(", name=").append(name);
        sb.append(", headportrait=").append(headportrait);
        sb.append(", fansnumber=").append(fansnumber);
        sb.append(", attention=").append(attention);
        sb.append(", sex=").append(sex);
        sb.append(", age=").append(age);
        sb.append(", score=").append(score);
        sb.append(", cityid=").append(cityid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
    public User(){

    }

    public User(String account,String password,String name,int cityid){
        this.acount=account;
        this.password=password;
        this.name=name;
        this.headportrait="";
        this.fansnumber=0;
        this.attention=0;
        this.sex="";
        this.age="";
        this.score=0;
        this.cityid=cityid;
    }
}